package com.lyl.excel.excel;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.lyl.excel.common.annotation.ListValue;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Mr.Luo
 * @date 2022-09-27 17:52
 * @desc
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Dept {
    @ExcelIgnore
    private Integer id;
    @ExcelProperty("姓名")
    @ListValue(value = {"张三","李四"},message = "姓名只能为指定值{value}")
    private String name;
    @ExcelProperty("性别")
    private Integer sex;
}
